package main

import (
	"fmt"
)

func main() {

	var g int
	g = 10
	fmt.Println(g)
	var h *int
	h = &g
	f2(h)

}
func f2(n *int) {
	fmt.Println("传进来的值", *n)
	*n = 100
	fmt.Println("修改之后的值", *n)
}
